package abstractfactory.product.abstracts;

/**
 * @ClassName: Pizza
 * @Description: 披萨（产品）
 * @Date: 2021/1/12 16:43
 * @Author: Song JinGen
 */

public abstract class Pizza {
    public String name;
    public Cheese cheese;
    public Sauce sauce;
    public abstract void prepare();

    public void bake(){
        System.out.println("烘烤中...");
    }

    public void cut(){
        System.out.println("切块中...");
    }

    public void box(){
        System.out.println("打包中...");
    }

    public String getName(){
        return this.name;
    }
}
